package com.scalar.chiptrack.sales.forms;

import com.scalar.chiptrack.ChipTrackActionForm;
import com.scalar.chiptrack.sales.ContactPerson;

import java.util.ArrayList;

import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by IntelliJ IDEA.
 * User: prasad
 * Date: Jul 25, 2007
 */
public class ContactPersonAddressBookForm extends ChipTrackActionForm
{
    private int customerId;
    private int salesOrderId;
    private int quotationId;
    private String sourceType;
    private ArrayList contactPersonsList;


    public ContactPersonAddressBookForm() 
    {
        customerId          = 0;
        salesOrderId        = 0;
        quotationId         = 0;
        sourceType          = "";
        contactPersonsList  = new ArrayList();
    }


    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }


    public int getSalesOrderId() {
        return salesOrderId;
    }

    public void setSalesOrderId(int salesOrderId) {
        this.salesOrderId = salesOrderId;
    }


    public int getQuotationId() {
        return quotationId;
    }

    public void setQuotationId(int quotationId) {
        this.quotationId = quotationId;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public ArrayList getContactPersonsList() {
        return contactPersonsList;
    }

    public void setContactPersonsList(ArrayList contactPersonsList) {
        this.contactPersonsList = contactPersonsList;
    }

    public void reset( ActionMapping actionMapping, HttpServletRequest httpServletRequest )
    {
        /*if( contactPersonsList != null )
        {
            ContactPerson contactPerson = null;
            for ( int i = 0; i < contactPersonsList.size(); i++ )
            {
                contactPerson = ( ContactPerson ) contactPersonsList.get(i);
                contactPerson.setIsChecked ( false );
            }
        }*/
    }
}
